﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PageTemplate.Master" AutoEventWireup="true" CodeBehind="Reports.aspx.cs" Inherits="RMS.Pages.Reports" MaintainScrollPositionOnPostBack="true" %>
<asp:Content ID="Content1" ContentPlaceHolderID="BodyContent" runat="server">
    <h1>Generate Reports</h1>
    <hr />
    <h2> Select Report Type:</h2>
    <br />  
    
    <asp:DropDownList ID="ReportDropDown" runat="server"  AutoPostBack="True" OnSelectedIndexChanged="ReportDropDown_SelectedIndexChanged"> </asp:DropDownList>
    <br />
    
    
    <table>
        <tr>
            <td>
                <h2>Sort:</h2><br />
                <asp:DropDownList ID="SortOrderDropDown" runat="server"> </asp:DropDownList>
            </td>
            <td>
                
            </td>
        </tr>
    </table>
    
    
    <br />
    
    <br />



    <asp:Button ID="btnGenerateReport" CssClass="myButton" runat="server" Text="Generate Report" OnClick="btnGenerateReport_Click" /> 
    
    &nbsp; &nbsp;<asp:Button ID="btnExportReport" CssClass="myButton" runat="server" OnClick="btnExportReport_Click" Text="Export to Excel" />
    
    <br />
        
    <br />
    
    <!-- Reporting GridView -->
    <asp:GridView ID="GridView2" 
        autogeneratecolumns="false"
        AllowSorting="true"
        emptydatatext="No data was found."
        runat="server" BackColor="#CCCCCC" BorderColor="#999999" BorderStyle="Solid" BorderWidth="3px" CellPadding="4" CellSpacing="2" ForeColor="Black">

        <columns>
             
        </columns>
        
        <FooterStyle BackColor="#CCCCCC" />
        <HeaderStyle BackColor="#0070a3" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#CCCCCC" ForeColor="Black" HorizontalAlign="Left" />
        <RowStyle BackColor="White" />
        <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#F1F1F1" />
        <SortedAscendingHeaderStyle BackColor="#808080" />
        <SortedDescendingCellStyle BackColor="#CAC9C9" />
        <SortedDescendingHeaderStyle BackColor="#383838" />

    </asp:GridView>


    
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="SidebarContent" runat="server">
    <span><a href="/pages/UserAccount.aspx">View Admin Account</a></span>
    <span><a href="/admin/retreats">Edit, Remove, or View Retreats</a></span>
    <span><a href="/admin/addretreat">Add Retreats</a></span>
    <span><a class="selected" href="/admin/reports">Generate Reports</a></span>
    <span><a href="/pages/admin/Users.aspx">Edit, Remove, or View Users</a></span>
    <span><a href="/pages/CreateAccount.aspx">Add Users</a></span>
</asp:Content>
